﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ForumsBrowser.ServiceContracts;
using ForumsBrowser.SiteAccess;

namespace ForumsBrowser.ObjectGateway
{
    internal static class ForumSetSelectedAction
    {
        internal static void Execute(string forumName, bool selected)
        {
            if (selected)
                ServiceFactory.Service.AddSelectedForum(forumName);
            else
                ServiceFactory.Service.RemoveSelectedForum(forumName);
        }
    }
}
